// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import http from './api/request.js'
import verhttp from './api/Vrequest.js'
import store from './store/index.js'
Vue.prototype.$veriUrl = 'https://veri.yoojet.com' // 实名
var baseUrl = Vue.prototype.$veriUrl
// 解决地图跨域问题
// 解决百度地图跨域问题
import {VueJsonp} from 'vue-jsonp'
Vue.use(VueJsonp)

import NumberInput from '@/components/numberInput.vue'
Vue.component('number-input',NumberInput)
// Vue.component('ua-tabbar')
Vue.prototype.$httpUrl = "https://api.yoojet.com"
Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.$verhttp = verhttp
Vue.config.productionTip = false
const msg = (title, duration = 2000, mask = false, icon = "none") => {
	if (Boolean(title) === false) {
		return
	}
	uni.showToast({
		title,
		duration,
		mask,
		icon
	})
}
Vue.prototype.$api = {
	msg
};
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif